﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EMC.VISITOR.Application
{
    [SugarTable(null, "海康人脸检测结果")]
    [BusinessVS]
    public class HKFaceCheck : EntityBase
    {
        [SugarColumn(ColumnDescription = "图片Url地址", Length = 500, IsNullable = true, IndexGroupNameList = new string[] { "index_fackcheck_url" })]
        public string faceUrl { get; set; }
        /// <summary>
        /// 人脸识别结果
        /// </summary>
        [SugarColumn(ColumnDescription = "人脸识别结果", IsNullable = true)]
        /// <summary>
        /// 人脸图片检测结果，true-评分合格false-评分不合格
        /// </summary>
        public bool? checkResult { get; set; }
        /// <summary>
        /// 评分失败详细错误码，
        /// 0x1f902300-人脸检测错误（图片格式不符合要求、检测不到人脸等情况时）
        /// 0x1f902301-人脸检测超时
        /// 0x1f902303-图片两眼间距过小
        /// 0x1f902304-图片彩色置信度过低
        /// 0x1f902305-图片人脸角度过大
        /// 0x1f902306-图片清晰度过低
        /// 0x1f902307-图片过曝或过暗（灰阶值不符合要求）
        /// 0x1f902308-图片遮挡严重
        /// 0x1f902309-图片分数过低
        /// </summary>
        [SugarColumn(ColumnDescription = "评分失败详细错误码", IsNullable = true)]
        public string statusCode { get; set; }
        /// <summary>
        /// 评分失败详情描述
        /// </summary>
        [SugarColumn(ColumnDescription = "评分失败详情描述", IsNullable = true)]
        public string statusMessage { get; set; }
        /// <summary>
        /// 人脸评分，范围：1-100
        /// </summary>
        [SugarColumn(ColumnDescription = "人脸评分", IsNullable = true)]
        public int? faceScore { get; set; }
        [SugarColumn(ColumnDescription = "耗时", IsNullable = true)]
        public long? ElapsedTicks { get; set; }
    }
}
